package test;
import lovedna.utils.LBitmapCache;
import nme.display.Bitmap;

/**
 * 测试 flash html5功能正常
 * 
 * @author liwei
 */

class TestLoader extends TestBase
{
	private var list:Array<String>;
	public function new() 
	{
		super();
		list = new Array<String>();
		list.push("assets/img/jingyingkalin.png");
		list.push("assets/img/test.png");
		list.push("assets/img/women2.png");
		list.push("assets/img/xialulu.png");
		
	}
	override public function start():Void 
	{
		super.start();
		var len:Int = list.length;
		while (len-->0) {
			var bm:Bitmap = new Bitmap();
			addChild(bm);
			bm.x = Math.random() * 400;
			bm.y = Math.random() * 400;
			LBitmapCache.getInstance().getBitmap(list[len], bm);
		}
	}
}
